import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from "@/store";
import http from 'axios';
import "../mock/mock"
import {
    Aside, Breadcrumb, BreadcrumbItem,
    Button, Card,
    Col,
    Container, DatePicker, Dialog, Dropdown, DropdownItem, DropdownMenu,
    Footer, Form, FormItem,
    Header, Input,
    Main,
    Menu,
    MenuItem,
    MenuItemGroup, Message, MessageBox, Option, Pagination,
    Row, Select,
    Submenu, Switch, Table, TableColumn, Tag
} from 'element-ui';

Vue.use(Button)
Vue.use(Container)
Vue.use(Header)
Vue.use(Aside)
Vue.use(Main)
Vue.use(Footer)
Vue.use(Row)
Vue.use(Col)
Vue.use(Menu)
Vue.use(Submenu)
Vue.use(MenuItemGroup)
Vue.use(MenuItem)
Vue.use(Dropdown)
Vue.use(DropdownMenu)
Vue.use(DropdownItem)
Vue.use(Card)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Pagination)
Vue.use(Breadcrumb)
Vue.use(BreadcrumbItem)
Vue.use(Tag)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Input)
Vue.use(Switch)
Vue.use(DatePicker)
Vue.use(Option)
Vue.use(Dialog)
Vue.use(Select)


Vue.config.productionTip = false
Vue.prototype.$http = http
Vue.prototype.$confirm = MessageBox.confirm
Vue.prototype.$message = Message

new Vue({
    store,
    router: router,
    created() {
        // 按照全局事件总线
        Vue.prototype.$bus = this
    },
    render: h => h(App),
}).$mount('#app')


